x86: vMCE save and restore
authorLiu, Jinsong <jinsong.liu@intel.com>
Wed, 26 Sep 2012 10:05:55 +0000 (12:05 +0200)
committerLiu, Jinsong <jinsong.liu@intel.com>
Wed, 26 Sep 2012 10:05:55 +0000 (12:05 +0200)
commit19b03acdd1cdb8a6c35a30079ae6d6fb72caa285
tree734c7cb2e579c64fae4183bb4201eb9d98f01e2b
parent513e591c04d9d4f9ffe9ec282daaba798c30c176
x86: vMCE save and restore

This patch provides vMCE save/restore when migration.
1. MCG_CAP is well-defined. However, considering future cap extension,
   we keep save/restore logic that Jan implement at c/s 24887;
2. MCi_CTL2 initialized by guestos when booting, so need save/restore
   otherwise guest would surprise;
3. Other MSRs do not need save/restore since they are either error-
   related and pointless to save/restore, or, unified among all vMCE
   platform;

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
- fix handling of partial data in XEN_DOMCTL_set_ext_vcpucontext
- fix adjustment of xen_domctl_ext_vcpucontext

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
tools/misc/xen-hvmctx.c
xen/arch/x86/cpu/mcheck/vmce.c
xen/arch/x86/domctl.c
xen/include/asm-x86/mce.h
xen/include/public/arch-x86/hvm/save.h
xen/include/public/domctl.h